package com.google.code.jgib.main;

import java.io.IOException;

import org.jibble.pircbot.IrcException;
import org.jibble.pircbot.NickAlreadyInUseException;

import com.google.code.jgib.util.irc.IrcBot;

public class JAb {
	public static final boolean DEBUG = true;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (args.length != 7 && !DEBUG) {
			System.out
					.println("Invalid number of arguments.\nExpected: java -jar jgib.jar <bindIP> <bindPort> <sendToIP> <sendToPort> <IRCServer> <IRCServPort> <IRCFlags>");
			System.exit(0);
		}

		IrcBot bot = new IrcBot("M0nit0r");
		try {
			bot.connect("localhost", 56667, "sheepfucker");
			bot.joinChannel("#ul");

		} catch (NickAlreadyInUseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IrcException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
